package com.hh.demo.feignClient;

import com.hh.demo.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author 黄浩
 * @create 2022-07-28 21:09
 */
@FeignClient(value = "service-media", fallbackFactory = MediaFileFeignClientFallBackFactory.class)
public interface MediaFileFeignClient {
    @RequestMapping(value="/mediaFile/selectMediaFile/{chapterId}",method= RequestMethod.GET)
    JSONResult selectMediaFile(@PathVariable("chapterId") Long chapterId);
}
